How to add .htaccess user login authentication on nginx

It occur to me how to add somekind like .htaccess user login authentication on nginx, it was called NginxHttpAuthBasicModule. You need to go to your nginx.conf.  Here is some example : # vim /etc/nginx/nginx.conf root /usr/local/www/page; index  index.php; location  /user  { auth_basic            “Restricted”; auth_basic_user_file  /usr/local/www/user.pass } location ~ \.php$ { fastcgi_pass   127.0.0.1:9000; fastcgi_index  index.php; fastcgi_param  … Continue reading How to add .htaccess user login authentication on nginx